<?php /* Smarty version Smarty-3.1.11, created on 2012-10-08 12:04:22
         compiled from "_templates\shop\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:192025072a5263a7d22-21680375%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c6ec59015520df85b590145703f95f3443433512' => 
    array (
      0 => '_templates\\shop\\index.tpl',
      1 => 1349677401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '192025072a5263a7d22-21680375',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shop' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5072a5264d9b74_69399632',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5072a5264d9b74_69399632')) {function content_5072a5264d9b74_69399632($_smarty_tpl) {?><article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('title');?>
</h3></header>
        <div class="module_content">
            <div class="content">
                <fieldset>
                    <label><?php echo $_smarty_tpl->getConfigVariable('title_cats');?>
</label>
					<table cellpadding="2" style="width:99%; margin:5px;" cellspacing="2" border="0">
						<tbody>
                            <?php if (!empty($_smarty_tpl->tpl_vars['shop']->value)){?>
								<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['shop']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
									
									<script type="text/javascript">
										$(function() {
											$(".inv_button_<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
").click(function() {
												var id 					= '<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
';
												var dataString	= 'shopcat='+ id;
												var parent = $(this).parent();
											$.ajax({
												type: "POST",
												url: "_javascript/ajax_livedit.php",
												data: dataString,
												cache: false,
												success: function()
													{
														$("#maininv_<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
").fadeOut('slow', function() {$("#maininv_<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
").remove();});
													}
											});
											return false;
											});
										});
									</script>
									
								<tr id="maininv_<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
">
									<td class="body">&raquo; <a href="index.php?mod=shop&page=cat&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
"><b><?php echo $_smarty_tpl->tpl_vars['item']->value['categoryName'];?>
</b></a></td>
									<td class="body"><a href="#" style="float:right; margin-right:5px;" class="inv_button_<?php echo $_smarty_tpl->tpl_vars['item']->value['categoryId'];?>
"><img src="_images/icons/cross.png" /></a></td>

								</tr>
								<?php } ?>	
                            <?php }?>
						</tbody>
					</table>
                </fieldset>
			</div>
        </div>
	<footer>
		<div class="submit_link">
			<a href="index.php?mod=shop&page=add"><input type="submit" value="<?php echo $_smarty_tpl->getConfigVariable('add_cat');?>
" class="alt_btn"></a>
		</div>
	</footer>
</article>
<?php }} ?>